<?
	if(!class_exists('Page')) {
		$pathFix = dirname(__FILE__);
		include $pathFix.'/Page.php';
	}

	class LinkPage extends Page {
		function getPage() {
			// 페이지목록
			$this->Page = '';
			for($i=$this->ForStart;$i<$this->ForEnd;$i++) {
				if($this->AllPageCount!=0 && $i > $this->AllPageCount) {
					break;
				}
				if($i!=$this->ShowPage) {
					if($i>=1 && $i<=$this->AllPageCount) {
						$tstr = str_replace('#', '<a href="'.$this->LinkString.'&amp;'.$this->LinkPageName.'=!'.$this->Pars.'" id="pg!">!</a> ', $this->PageHtml);
						$this->Page .= str_replace('!', $i, $tstr);
					}
				} else {
					$tstr = str_replace('#', '<span class="page_on" id="pg!">!</span>', $this->PageHtml); ;
					$this->Page .= str_replace('!', $i, $tstr);
				}
			}
		}

	}
?>